//
//  YQTransferHeadView.m
//  NewRetail
//
//  Created by yuqin on 2019/6/23.
//  Copyright © 2019年 yuqin. All rights reserved.
//

#import "YQTransferHeadView.h"

@implementation YQTransferHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = MainBlueColor;
        [self setupHeadView];
    }
    return self;
}

- (void)setupHeadView {
    [self addSubview:self.totalMoneyLab];
    [self.totalMoneyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.mas_centerX);
        make.centerY.mas_equalTo(self.mas_centerY);
    }];
}

- (UILabel *)totalMoneyLab {
    if (!_totalMoneyLab) {
        _totalMoneyLab = [YQViewFactory labelWithTextColor:WhiteColor textAlignment:NSTextAlignmentCenter fontSize:kCoinsFont userBold:YES];
        _totalMoneyLab.text = @"2343.325235 WDC";
    }
    return _totalMoneyLab;
}

@end
